<?php

namespace app\zyhsapi\model;

use think\Exception;

class ZyhsRecodeSyncRecode extends BaseCacheZyhs
{
    protected $table = 'good_wechat.zyhs_recode_sync_recode';

    /**
     * 获取用户是否同步
     * @param int $uid
     * @return bool
     * @throws Exception
     */
    public function getUserIsSync(int $uid)
    {
        $num = $this->where('uid', $uid)->count();

        return $num ? true : false;
    }
}